package hust.ning.jdo;

import java.util.Date;

import javax.jdo.annotations.*;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ChatItem {
	/**
	 * @param id
	 * @param uid
	 * @param content
	 * @param date
	 */
	public ChatItem( String uid, String content, Date date) {
		super();
		this.uid = uid;
		this.content = content;
		this.date = date;
	}
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String uid ;

	@Persistent
	private String content;
	@Persistent
    private Date date;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}

	
	

}
